package com.mac.macjetpackdemo.view

import android.content.Context
import android.os.Debug
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.ViewGroup
import android.widget.FrameLayout
import com.mac.macjetpackdemo.log
import javax.net.ssl.HttpsURLConnection

class BViewGroup(context: Context, attrs: AttributeSet?) : FrameLayout(context, attrs) {
    private val TAG = "BViewGroup.."
    override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
            super.onLayout(changed, left, top, right, bottom)
    }

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        log(TAG + "dispatchTouchEvent ${ev.hashCode()}")
        return super.dispatchTouchEvent(ev)
    }

    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
        log(TAG + "onInterceptTouchEvent ${ev.hashCode()}")
        return false
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        log(TAG + "onTouchEvent ${event.hashCode()}")
        return true
    }
}